package com.sky.mapper;

import com.sky.entity.OrderDetail;
import com.sky.entity.Orders;
import com.sky.entity.SalesTop10Report;
import com.sky.vo.OrderDetailPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderDetailMapper {

    /**
     * 批量插入订单明细数据
     * @param orderDetails
     */
    void insertBatch(List<OrderDetail> orderDetails);

    /**
     * 分页查询订单明细
     * @param queryOrderDetail
     * @return
     */
    List<OrderDetail> list(OrderDetail queryOrderDetail);

    /**
     * 销量前十
     * @return
     */
    List<SalesTop10Report> SalesTop10ReportList(Map<String, Object> map);
}
